Zero a route head when alloced.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 20 Nov 2002 15:59:09 +0000 (15:59 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 20 Nov 2002 15:59:09 +0000 (15:59 +0000)
gpsbabel/route.c

index 65752c90b3370a14d22743e878b85f40bb5edd54..8a8ea03fc87c0d485056b1b93479fbceff786aa0 100644 (file)
@@ -33,7 +33,7 @@ route_head *
 route_head_alloc(void)
 {
        route_head *rte_head;
-       rte_head = xmalloc(sizeof (*rte_head));
+       rte_head = xcalloc(sizeof (*rte_head), 1);
        QUEUE_INIT(&rte_head->Q);
        return rte_head;
 }